import Mock from 'mockjs'
const {
	list,
	listone,
	listtwo,
	list2,
	list3
} = Mock.mock({
	"list|30": [{
		"id|0-99": 0,
	}],
	"list2|30": [{
		"id|0-99": 0,
	}],
	"list3|24": [{
		"id|0-99": 0
	}],
	"listone|11": [{
		"id|0-99": 0
	}],
	"listtwo|12": [{
		"id|0-99": 0
	}],

})

Mock.mock('api/Product', 'get', () => {
	return {
		code: 0,
		msg: "请求成功",
		data: {
			list,
			list2,
			list3,
			Consume: {
				listone,
				listtwo
			},

		}
	}
})

const {
	progect,pp
} = Mock.mock({
	'progect|17': [{
		'id|+1': 1,
		'text': '这是一个测试的悬赏项目，对某个设备进行自动化改造',
		'ztai|1': [
			'等待揭榜',
			'等待完成',
			'等待检验',
			'合格',
		],
		'price|1000-9999': 1111,
		'date':'@date',
		'ren|1':[
			'张三',
			'李四',
			'王五',
		]
	}],
	'pp|12':[{
		'id|+1':1,
		'ming|1':['Internet Explorer 4.0','Internet Explorer 5.5','Camino 1.0','Firefox 3.0','AOL browser (AOL desktop)'],
		'date':'@now',
		'xing|1':['A','B','C','X','Y','Z']
	}]
})

Mock.mock('api/progect', 'get', () => {
	return {
		code: 0,
		msg: "请求成功",
		data: {
			data:progect,
			biao:pp
		}
	}
})
